<?php
include'../conn/conn.php';
include '../conn/islogin.php';
if(!empty($_GET)){
$no = $_GET['no'];
$no=json_decode($no,TRUE);
$ar = "";
foreach ($no as $key => $value) {
$ar.=" or no=".$value['no'] 	;
}
//$a=$ar;
//
//$C=rtrim($a,'or');
//var_dump($ar);
$updata_sql = 'UPDATE tb_news SET state = 1 WHERE no = 9999999999 '.$ar;
$result=mysqli_query($link, $updata_sql);
echo'<script type="text/javascript">
	window.history.back(0)
</script>';
}
?>
